package com.kgame5.xtank3d.app.view.gbook.pagecover {
import com.kgame5.xtank3d.app.AppEnum;

import org.puremvc.as3.interfaces.INotification;
import org.puremvc.as3.patterns.mediator.Mediator;

import flash.events.Event;

/**
 * @author kangkai
 * 服务器列表
 */
public class PageCoverMediator extends Mediator{
	public static const NAME:String="PageCoverMediator";
	
	private var comp:PageCoverComp;

	public function PageCoverMediator(p_comp:PageCoverComp){
		super(NAME);
		
		comp=p_comp;
		comp.getMC().btn_start.addEventListener("click",onClickStart);
	}

	public override function listNotificationInterests() : Array {
		return [
			
			];
	}

	public override function handleNotification(e : INotification) : void {
		
	}
	
	//--组件事件
	private function onClickStart(e:Event):void{
		trace("onClickStart");
		this.sendNotification(AppEnum.TURN_PAGE,AppEnum.PAGEID_LOADING);
	}
}//end of class
}
